<html>
<head>
<title>DragMath Documentation - Creating simple expressions</title>
</head>
<body>


<font size="2"; style="font-family: Arial;">

<h2><span style=" color: #000099;"><strong>Creating simple expressions</strong></span></h2>

<p>
DragMath is based on the idea of templates for each operator or function. You can insert a template, which will consist of the traditional notation and layout for that particular operator/function and also blank boxes. The number of boxes depending upon the number of arguments the operator/function takes.
</p>
For example, inserting addition would look like this:<br>
<img alt="" hspace=0 src="img/plus.jpg" align=baseline border=0>
<p>
Any text from the keyboard can then be entered into the boxes, by clicking on it to select it, and then typing in the desired data.
 </p>
<p>
To insert a template from the toolbar, there are two main ways:
</p>

<font size=3>
<b>Point and Click</b>
</font><br>
Clicking on the object in the toolbar and then clicking onto the workspace area.
<br><br>

<font size=3>
<b>Drag and Drop</b>
</font><br>
Dragging an object from the toolbar onto the workspace area.

<p>
If an operator is inserted anywhere on the workspace area it will be appended to the end of the current expression. To build up expressions of varying content, you need to insert the Mathematical objects into particular areas of the expression. They can be inserted in the following ways:
</p>

<font size=3>
<b>Onto a text box</b>
</font><br>
Inserting an object onto a text box will insert the object at the position of the text box, and use the text box as an argument. If it is an operator the box will form the left argument, if it is a function it will form its only argument.
<p>
For example, inserting Sine onto a box of addition would look like this:
 </p><p>
Before:
<br><IMG alt="" hspace=0 src="img/plus.jpg" align=baseline border=0>              
</p><p>
After:
<br>
<IMG alt="" hspace=0 src="img/sin on box.jpg" align=baseline border=0>
</p>
<font size=3>
<b>Onto the notation of another template</b>
</font>
<br>
By inserting onto any notation related to a particular template, for example a ‘+’, ‘√’ or a bracket, then the same effect happens as when inserting onto a box. The whole math object that is associated with that notation is treated as a box. So inserting the Sine function onto the symbol ‘+’, would take the whole operator template (including its arguments), and make them the argument of the Sine function.
<p>
Before:
<br>
<IMG alt="" hspace=0 src="img/plus.jpg" align=baseline border=0>
</p>
 <p>
After: 
<br>
<IMG alt="" hspace=0 src="img/sin on plus.jpg" align=baseline border=0>
</p>
</font>

</body>
</html>